package com.zhou.cloud.config;

import com.zhou.cloud.config.properties.ZhouProperties;
import com.zhou.cloud.service.IZhouService;
import com.zhou.cloud.service.ZhouServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @descrition:
 * @author: zhouyongjun
 * @date: 2022/10/8
 **/
@Configuration
@EnableConfigurationProperties(ZhouProperties.class)
public class ZhouConfig {
    @Autowired
    ZhouProperties properties;

    @Bean
    public IZhouService getZhouService(){
        return new ZhouServiceImpl();
    }

}
